package com.yuju.model;

import java.util.Date;

/**
 * 类名：SessionInfo  <br />
 *
 * 功能：用户会话
 *
 * @author : xuehj <br />
 * @Date : 2017年9月20日 下午1:55:15  <br />
 * @version : 1.1 <br />
 */
public class SessionInfo implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	private String sessionId; // session会话ID
	private String validateCode; // 验证码
	private String inputValidateCode; // 用户输入的验证码
	private Date validateCodeSendTime; // 验证码发送时间
	private int validateICount = 0; // 验证码比较次数
	private String mobile; // 手机号码
	private String password;
	private String loginIp; // 登录IP
	private User user; // 用户
	private String token;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	// wei xin
	protected String fromusername;// FromUserName 发送方帐号（一个OpenID）
	protected String tousername;// toUserName 开发者微信号(公众号)

	public String getFromusername() {
		return fromusername;
	}

	public void setFromusername(String fromusername) {
		this.fromusername = fromusername;
	}

	public String getTousername() {
		return tousername;
	}

	public void setTousername(String tousername) {
		this.tousername = tousername;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public String getValidateCode() {
		return validateCode;
	}

	public void setValidateCode(String validateCode) {
		this.validateCode = validateCode;
	}

	public String getInputValidateCode() {
		return inputValidateCode;
	}

	public void setInputValidateCode(String inputValidateCode) {
		this.inputValidateCode = inputValidateCode;
	}

	public Date getValidateCodeSendTime() {
		return validateCodeSendTime;
	}

	public void setValidateCodeSendTime(Date validateCodeSendTime) {
		this.validateCodeSendTime = validateCodeSendTime;
	}

	public int getValidateICount() {
		return validateICount;
	}

	public void setValidateICount(int validateICount) {
		this.validateICount = validateICount;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
}
